//加载用户列表
let initUser=function (user,node) {
    let s =
        '   <div class="resent-grid-info">'+
        '       <h5>用户列表</h5>'+
        '       <ul>'+
        '           <li><p class="author">'+user.user+'</p ></li>'+
        '           <li class="right-list"><p class="views">'+user.ps+'</p ></li>'+
        '       </ul>'+
        '   </div>'+
        '</div>';
    if(node != null){
        $(node).append(s);
    }
    return s;
};

let display=function (url){
    let method = "GET";
    let data = {
        // video_type:video_type,
    };
    ajax_base(null, url, method, "Json").then(function (data) {
            if (data.success) {
                let users = data.obj;
                console.log(users);
                let node = '#user';
                for(var i = 0; i < 2; i++) {
                    initUser(users[i],node);
                }

            }
        }
    );
};

let url = "/users/userList";
//显示最新上传的8个tv_shows视频
display(url);